// 获取注记geojson
export const getGeoJsonNote = (data: any) => {
    return {
        type: "FeatureCollection",
        features: data.map((item: any) => {
            return {
                type: "Feature",
                properties: {
                    ...item.properties,
                },
                geometry: {
                    type: "Point",
                    coordinates: item.properties.centroid,
                },
            };
        })
    };
}